.notice-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notice-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s;
}

.notice-item:hover {
    transform: translateY(-2px);
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.notice-title {
    font-size: 1.1em;
    font-weight: 500;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.notice-date {
    width: 106px;
    text-align: right;
    color: #888;
    font-size: 0.8em;
}

.notice-content {
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: 3em;
}

.notice-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.notice-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgb(206, 223, 190);
}

.author-name {
    font-size: 0.9em;
    color: #666;
}

.notice-stats {
    display: flex;
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 0.9em;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    cursor: pointer;
}

.stat-item:hover {
    background-color: var(--secondary-color);
}

.stat-item .icon {
    font-size: 1.1em;
    line-height: 1;
}

.notice-detail {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.detail-header {
    margin-bottom: 25px;
}

.detail-title-row {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 15px;
}

.detail-header .notice-tags {
    display: flex;
    gap: 8px;
    margin-right: 12px;
}

.detail-header .notice-tags:empty {
    margin-right: 0;
}

.detail-header .tag {
    padding: 4px 12px;
    font-size: 0.85em;
    font-weight: 500;
}

.detail-header .detail-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.detail-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.detail-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-author .author-avatar {
    width: 32px;
    height: 32px;
}

.detail-author .author-name {
    font-size: 1em;
    color: var(--text-color);
}

.detail-date {
    color: #888;
    font-size: 0.9em;
}

.detail-content {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 30px;
}

/* 操作按钮样式 */
.detail-actions {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.action-left {
    display: flex;
    gap: 10px;
}

.action-right {
    display: flex;
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: #f5f5f5;
    color: var(--text-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background: #e8e8e8;
}

.action-btn.like-btn.active {
    background: var(--primary-color);
    color: white;
}

.action-btn.edit-btn {
    background: var(--primary-color);
    color: white;
}

.action-btn.edit-btn:hover {
    background: var(--primary-color-hover);
}

.action-btn.delete-btn {
    background: #e37575;
    color: white;
}

.action-btn.delete-btn:hover {
    background: #d45353
}

.action-btn .icon {
    font-style: normal;
}

/* 评论区样式 */
.comments-section {
    margin-top: 30px;
}

.comments-section h3 {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: var(--text-color);
}

.comment-form {
    margin-bottom: 30px;
}

.comment-input {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    resize: vertical;
    font-size: 1em;
    line-height: 1.6;
}

.comment-item {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgb(206, 223, 190);
}

.comment-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comment-author-name {
    font-weight: 500;
    color: var(--text-color);
}

.comment-date {
    font-size: 0.85em;
    color: #888;
}

.comment-like-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: none;
    border-radius: 16px;
    background: #f5f5f5;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-like-btn:hover {
    background: #e8e8e8;
}

.comment-like-btn.active {
    background: var(--primary-color);
    color: white;
}

.comment-content {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-color);
    padding-left: 48px;  /* 与头像对齐 */
}

.delete-comment-btn {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background: #f8e7e7;
    border: none;
    border-radius: 4px;
    cursor: pointer;            
    font-size: 0.9em;
    transition: all 0.3s;
    opacity: 0.6;
}

.comment-item:hover .delete-comment-btn {
    opacity: 1;
}

.delete-comment-btn:hover {
    background: #d45353
}

.delete-comment-btn .icon {
    font-style: normal;
    font-size: 1em;
}

/* 搜索区域样式 */
.search-section {
    margin-bottom: 10px;
    padding: 15px 0;
    background: transparent;
    box-shadow: none;
}

.search-row {
    width: 100%;
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-row {
    display: flex;
    gap: 15px;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: white;
    min-width: 120px;
    cursor: pointer;
}


.post-btn {
    width: 100px;
    padding: 8px 16px;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.post-btn:hover {
    background: var(--success-color-hover);
}


.file-upload {
    display: flex;
    align-items: center;
}

.file-input {
    display: none;
}

.file-label {
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.file-label:hover {
    background: #e8e8e8;
}

.file-name {
    color: #666;
    flex: 1;
    margin-right: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.selected-files {
    margin: 15px 0;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
padding: 4px 8px;
    background: #fee3df;
    border-radius: 4px;
    font-size: 0.9em;
}

.remove-file {
    background: none;
    border: none;
    color: #ff4d4f;
    cursor: pointer;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.remove-file:hover {
    background: rgba(255, 77, 79, 0.1);
}

.remove-file i {
    font-style: normal;
    font-size: 14px;
}


.notice-title-row {
    display: flex;
    align-items: center;
    gap: 0;
}

.notice-tags {
    display: flex;
    gap: 6px;
    margin-right: 8px;
}

.notice-tags:empty {
    margin-right: 0;
}

.tag {
    padding: 2px 8px;
    border: 0;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 500;
}

.tag-category {
    background-color: #f0ebda;
    color: var(--primary-font-color);
    font-weight: bold;
    /* color: #1890ff; */
}

.tag-hot {
    background-color: #ffe1df;
    color: #ff4d4f;
    font-weight: bold;
}

.detail-title-row {
    margin-bottom: 15px;
}

.detail-header .tag {
    padding: 4px 12px;
    font-size: 0.85em;
}

.detail-header .detail-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

/* 发帖表单样式 */
.post-form {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.post-title {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.post-content {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 15px;
    resize: vertical;
}

.post-options {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.category-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    min-width: 120px;
}

.upload-btn {
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
}

.post-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.post-actions .action-btn {
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.post-actions .post-btn {
    background: var(--primary-color);
    color: white;
    border: none;
}

.post-actions .cancel-btn {
    background: #f5f5f5;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

/* 响应式适配 */
@media screen and (max-width: 768px) {
    .search-row, .filter-row {
        flex-direction: row;
    }

    .filter-select {
        width: 100%;
    }

    .post-options {
        flex-direction: column;
    }

    .category-select {
        width: 100%;
    }
}

/* list item layout */
.notice-main {
    display: flex;
    gap: 15px;
}

.notice-content-wrapper {
    flex: 1;
    min-width: 0;  /* Prevent content overflow */
    overflow: hidden;  /* Ensure content does not overflow */
}

/* media content style */
.notice-media {
    position: relative;
    flex-shrink: 0;  /* Prevent compression */
    width: 120px;    /* Fixed width */
    height: 120px;   /* Fixed height */
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f8f8;
}

.notice-media img,
.notice-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Keep proportion */
}

/* Remove media count display */
.media-count {
    display: none;
}

/* Responsive adjustment */
@media screen and (max-width: 768px) {
    .notice-main {
        flex-direction: column;  /* Change to vertical layout on small screens */
    }

    .notice-media {
        width: 100%;      /* Take up full width on mobile */
        height: 200px;    /* Display larger images on mobile */
    }
}

/* Responsive adjustment */
@media screen and (max-width: 768px) {
    .search-row {
        flex-direction: column;
    }

    .search-btn,
    .post-btn {
        width: 100%;
    }

    .filter-container {
        flex-direction: column;
        gap: 10px;
    }

    .filter-row {
        width: 100%;
        justify-content: space-between;
    }

    .filter-select {
        flex: 1;
        max-width: calc(50% - 5px); /* Considering the 10px gap, each takes up half minus the gap */
    }

    .post-btn {
        margin-top: 10px;
    }

    .notice-content-wrapper {
        width: 100%;  /* Ensure content area takes up full width */
    }
}

.delete-notice-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: #ff4d4f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.delete-notice-btn:hover {
    background: #ff7875;
}

.delete-notice-btn .icon {
    font-style: normal;
}

.filter-radio-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-label span {
    padding: 6px 12px;
    border-radius: 4px;
    background: #f5f5f5;
    color: var(--text-color);
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked + span {
    background: var(--primary-color);
    color: white;
}

/* Responsive adjustment */
@media screen and (max-width: 768px) {
    .filter-radio-group {
        width: 100%;
        justify-content: space-between;
    }

    .radio-label span {
        padding: 8px 16px;
        border-radius: 4px;
    }
}

.share-notice-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: #f5f5f5;
    color: var(--text-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.share-notice-btn:hover {
    background: #e8e8e8;
}

.share-notice-btn .icon {
    font-style: normal;
}

.comment-actions {
    display: none;
}

.detail-media {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f8f8;
    text-align: center;
}

.media-content {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

video.media-content {
    width: 100%;
    background-color: black;
}

.detail-media-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.detail-media {
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f8f8;
    text-align: center;
}

/* Like button style for list page */
.notice-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 0.9em;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    cursor: pointer;
}

.notice-stats .stat-item:hover {
    background-color: var(--secondary-color);
}

/* Like button active state for list page */
.notice-stats .stat-item.active {
    background: #d2c79e;
    color: white;
}

/* Operation button style for detail page */
.detail-actions .action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.detail-actions .action-btn.like-btn.active {
    background: var(--primary-color);
    color: white;
}